package com.atguigu.guli.service.edu.service;

import com.atguigu.guli.service.edu.entity.Course;
import com.atguigu.guli.service.edu.entity.form.CourseInfoForm;
import com.atguigu.guli.service.edu.entity.query.CourseApiQuery;
import com.atguigu.guli.service.edu.entity.vo.CourseDetailsVo;
import com.atguigu.guli.service.edu.entity.vo.CourseInfoVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.xmlbeans.impl.xb.xsdschema.Public;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author atguigu
 * @since 2021-06-27
 */
public interface CourseService extends IService<Course> {

    String saveCourseInfo(CourseInfoForm courseInfo);

    Page<CourseInfoVo> getCourseInfoVos(Integer pageNum, Integer pageSize);

    CourseInfoVo getPublishCourse(String courseId);

    List<Course> listCourses(CourseApiQuery courseApiQuery);

    CourseDetailsVo getCourseDetails(String courseId);
}
